]> dgit.raspbian.org Git - gnome-shell.git/commit
extensions-app: Reset switch handle when it becomes insensitive
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 18 May 2020 12:24:16 +0000 (14:24 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 21 May 2020 21:29:31 +0000 (21:29 +0000)
commitd2583aa47bd716f196bd1d171d9d134e2bed5d80
tree3e07a3d892c0aad23f9aaed26080451b5889e108
parent0ab34fe21f6197f3d26dc3676f2eb43e23d64c86
extensions-app: Reset switch handle when it becomes insensitive

Currently the switches handle position reflects the requested
extension state (as in: the user (de)activated the switch),
while the actual extension state is reflected by the underlying
state.

That doesn't work well when the switch is insensitive though (for
example on error), because the desaturation neuters the color
that reflects the state.

Address this by resetting the switch handle to the state when
making it insensitive.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1263
subprojects/extensions-app/data/ui/extension-row.ui
subprojects/extensions-app/js/main.js